package main

import (
	"github.com/google/wire"
	"jk-time/webook/comment/dao"
	"jk-time/webook/comment/grpc"
	"jk-time/webook/comment/ioc"
	"jk-time/webook/comment/repository"
	"jk-time/webook/comment/service"
)

func InitCommentServiceServer1() *App {
	wire.Build(
		ioc.InitDB,
		dao.NewAccountGormDao,
		repository.NewCommentRepository,
		service.NewCommentService,
		ioc.NewGrpcxServer,
		ioc.InitLogger,
		grpc.NewCommentServiceServer,
		grpc.NewRateLimitComment,
		wire.Struct(new(App), "*"),
	)
	return new(App)
}
